package cn.itsource.pethome.detp.mapper;

import cn.itsource.pethome.detp.domian.Employee;
import cn.itsource.pethome.detp.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeMapper {
    /**
     * 查询一个部门
     * @param id
     * @return
     */
    Employee findByEmpId(Long id);

    /**
     * 查询所有
     * @return
     */
    List<Employee> findAll(EmployeeQuery query);

    /**
     * 分页统计条数
     * @return
     */
    Long findCount(EmployeeQuery query);
    void addEmp(Employee employee);
    void uptEmpById(Employee employee);
    void delEmpById(Long id);

    /**
     * 批量删除
     * @param ids
     */
    void batchDelEmp(List<Integer> ids);
}
